<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:p="http://primefaces.org/ui">


		<ui:include src="/athlete/athleteWelcome.xhtml"/>
	
		<p:growl id="messages" showDetail="true"  />
		<p:tabView id="tabUser" dynamic="true" style="border:none;height:98%" rendered="#{athleteBean.athlete != null}" >
			<p:tab id="tabUserData"  title="#{msgs.RegistrationData}" titleStyleClass="ui-widget">
				<ui:include src="/athlete/athleteData.xhtml" />
			</p:tab>
			<p:tab id="tabAvailability" title="#{msgs.Disponibility}" titleStyleClass="ui-widget">
				<ui:include src="/athlete/athleteModalitys.xhtml" />
			</p:tab>
			<p:tab title="#{msgs.Evaluations}" titleStyleClass="ui-widget">
				<ui:include src="/athlete/athleteExams.xhtml" />
			</p:tab>
			<p:tab title="#{msgs.Equipments}" titleStyleClass="ui-widget">
				<ui:include src="/athlete/athleteEquipments.xhtml" />
			</p:tab>
			<p:tab title="#{msgs.Access}" titleStyleClass="ui-widget"  rendered="#{p:ifAnyGranted('ROLE_ACADEMY, ROLE_PERSONAL, ROLE_TEACHER')}">
				<ui:include src="/athlete/athleteRoles.xhtml" />
			</p:tab>
		</p:tabView>

</html>